package week2;

import java.util.Scanner;

public class PP0211{
  public static void main(String[] args){
    double tend,fived,oned,qua,dim,nic,pen;//引入变量
    double money;
    
    Scanner scan = new Scanner(System.in);//输入总数
    System.out.print("多少美元？");
    money = scan.nextFloat();

    tend = money/10;
    tend = Math.floor(tend);
    money %= 10.0;
    
    fived = money/5.0;
    fived = Math.floor(fived);
    money %= 5.0;

    oned = money/1.0;
    oned = Math.floor(oned);
    money %= 1.0;

    qua = money/0.25;
    qua = Math.floor(qua);
    money %= 0.25;

    dim = money/0.1;
    dim = Math.floor(dim);
    money %= 0.1;

    nic = money/0.05;
    nic = Math.floor(nic);
    money %= 0.05;

    pen = money/0.01;
    pen = Math.floor(pen);
    

    System.out.println(tend+" ten dollar bills\n"+fived+" five dollar bills\n"+oned+" one dollar bills\n"+qua+" quarters\n"+dim+" dimes\n"+nic+" nickles\n"+pen+" pennies");
  }
}
